home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr28
/
bpt5107.zip
/
PATCH510.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-01
|
6KB
|
284 lines
echo off
CLS
echo *** MAKE SURE THAT YOU USE THE ORIGINAL (UNPATCHED) RELEASED VERSION
echo OF THE PRODUCT YOU ARE PATCHING. PATCHING AN ALREADY PATCHED COPY
echo MAY CAUSE UNPREDICTABLE ERRORS.
echo
echo
echo This batch file patches the NETWARE v3.0 BTRIEVE PRODUCTS **ONLY**
echo If you are patching NETWARE v3.1 BTRIEVE PRODUCTS, please use
echo PATCH511.BAT.
echo
PAUSE
IF %2! == ! GOTO TESTNEXT
IF %2 == VAP GOTO TESTNEXT
IF %2 == vap GOTO TESTNEXT
IF %2 == NLM GOTO TESTNEXT
IF %2 == nlm GOTO TESTNEXT
IF %2 == DOS GOTO TESTNEXT
IF %2 == dos GOTO TESTNEXT
IF %2 == LOC GOTO TESTNEXT
IF %2 == loc GOTO TESTNEXT
IF %2 == REQ GOTO TESTNEXT
IF %2 == req GOTO TESTNEXT
GOTO PARAM
::
:TESTNEXT
IF %1! == ! GOTO PARAM
SET BTR_VER=510
SET BTR_NWV=NetWare_3.0
IF %1 == BTRIEVE GOTO BTRIEVE
IF %1 == btrieve GOTO BTRIEVE
IF %1 == BSERVER GOTO BTRIEVE
IF %1 == bserver GOTO BTRIEVE
IF %1 == BROUTER GOTO BROUTER
IF %1 == brouter GOTO BROUTER
IF %1 == BREQUEST GOTO BREQUES
IF %1 == brequest GOTO BREQUES
IF %1 == BTRCALLS GOTO BTRCALL
IF %1 == btrcalls GOTO BTRCALL
IF %1 == WBTRCALL GOTO WINDOWS
IF %1 == wbtrcall GOTO WINDOWS
IF %1 == BTRTOOLS GOTO WINDOWS
IF %1 == btrtools GOTO WINDOWS
IF %1 == BUTIL GOTO BUTIL
IF %1 == butil GOTO BUTIL
GOTO PARAM
::
:BTRIEVE
::
:: BEGIN BTRIEVE PATCHES
::
:: N L M 3.0
SET BTR_FILE=%1.NLM
SET BTR_ORG=%1.ORG
SET BTR_PAT=BPATNLM.%BTR_VER%
IF %2! == ! GOTO NEEDPRM
IF %2 == NLM GOTO NEXTBTR
IF %2 == nlm GOTO NEXTBTR
::
:: L O C A L
IF %1 == BSERVER GOTO BTRVAP
IF %1 == bserver GOTO BTRVAP
SET BTR_FILE=%1.EXE
SET BTR_ORG=%1.DOS
SET BTR_PAT=BPAT%2.51A
SET BTR_VER=510A
IF %2! == ! GOTO NEEDPRM
IF %2 == DOS GOTO PATCH
IF %2 == dos GOTO PATCH
GOTO NOTPKG
::
:: V A P
:BTRVAP
SET BTR_FILE=%1.VAP
SET BTR_PAT=BPATVAP.%BTR_VER%
SET BTR_NWV=*
IF %1 == BTRIEVE GOTO NOTPKG
IF %1 == btrieve GOTO NOTPKG
IF %2! == ! GOTO NEEDPRM
IF %2 == VAP GOTO PATCH
IF %2 == vap GOTO PATCH
GOTO NEEDPRM
::
:NEXTBTR
IF %1 == BSERVER GOTO VAPONLY
IF %1 == bserver GOTO VAPONLY
GOTO PATCH
::
:: END BTRIEVE PATCHES
::
:: BEGIN BROUTER PATCHES
::
:BROUTER
::
:: N L M 3.0
IF %2! == ! GOTO NEEDPRM
IF %2 == NLM GOTO NOTPKG
IF %2 == nlm GOTO NOTPKG
::
:: V A P
SET BTR_FILE=%1.VAP
SET BTR_ORG=%1V.ORG
SET BTR_PAT=BPATRTR.%BTR_VER%
SET BTR_NWV=*
IF %2 == VAP GOTO PATCH
IF %2 == vap GOTO PATCH
GOTO NOTPKG
::
:: END BROUTER PATCHES
::
:: BEGIN BREQUEST PATCHES
::
:BREQUES
::
:: N L M 3.0
SET BTR_FILE=%1.EXE
SET BTR_ORG=%1.ORG
SET BTR_PAT=BPATREQ.%BTR_VER%
IF %2! == ! GOTO NEEDPRM
IF %2 == NLM GOTO PATCH
IF %2 == nlm GOTO PATCH
::
:: V A P
SET BTR_PAT=BPATREQ.%BTR_VER%
SET BTR_NWV=*
IF %2! == ! GOTO NEEDPRM
IF %2 == VAP GOTO PATCH
IF %2 == vap GOTO PATCH
GOTO NOTPKG
::
::
:: END BREQUEST PATCHES
::
:: BEGIN OS/2 PATCHES
::
:BTRCALL
::
:: O S / 2 R E Q
SET BTR_FILE=%1.DLL
SET BTR_ORG=%1.ORG
SET BTR_PAT=BPATREQO.%BTR_VER%
IF %2! == ! GOTO NEEDPRM
IF %2 == REQ GOTO PATCH
IF %2 == req GOTO PATCH
::
:: O S / 2 L O C A L
SET BTR_ORG=%1.OS2
SET BTR_PAT=BPATOS2.%BTR_VER%
IF %2! == ! GOTO NEEDPRM
IF %2 == LOC GOTO PATCH
IF %2 == loc GOTO PATCH
GOTO NOTPKG
::
:: END OS/2 PATCHES
::
:: BEGIN WINDOWS PATCHES
::
:WINDOWS
::
:: W B T R C A L L
SET BTR_FILE=%1.DLL
SET BTR_ORG=%1.ORG
SET BTR_PAT=BPATWIN.%BTR_VER%
IF %1 == WBTRCALL GOTO PATCH
IF %1 == wbtrcall GOTO PATCH
::
:: B T R T O O L S
SET BTR_FILE=%1.EXE
SET BTR_PAT=WTOOLPAT.%BTR_VER%
GOTO PATCH
::
:: END WINDOWS PATCHES
::
:: BEGIN BUTIL PATCHES
::
:BUTIL
::
SET BTR_FILE=%1.EXE
SET BTR_ORG=%1.ORG
SET BTR_PAT=BPATUT.%BTR_VER%
GOTO PATCH
::
:: END BUTIL PATCHES
::
:: BEGIN PATCHING FILES
::
:PATCH
IF NOT EXIST PI.EXE GOTO NOPI
IF NOT EXIST %BTR_PAT% GOTO NOPAT
IF NOT EXIST %BTR_FILE% GOTO NOFILE
IF NOT EXIST %BTR_ORG% REN %BTR_FILE% %BTR_ORG%
IF EXIST %BTR_FILE% DEL %BTR_FILE%
:INPATCH
echo
echo %BTR_NWV% %BTR_FILE% VERSION %BTR_VER% ** PATCHING ..........
echo
COPY %BTR_ORG% %1
PI %1 %BTR_PAT%
REN %1 %BTR_FILE%
GOTO FIXDONE
::
:NOPAT
echo
echo CANNOT FIND %BTR_PAT%
GOTO END
::
:NOPI
echo
echo CANNOT FIND PI.EXE
echo
echo The Novell Patch Install Utility (PI.EXE) is required to install
echo the patches for this product. Please copy PI.EXE to the directory
echo you are working in............................................
GOTO END
::
:NOFILE
IF EXIST %BTR_ORG% GOTO INPATCH
echo
echo CANNOT FIND %BTR_FILE%
GOTO END
::
:NEEDPRM
echo
echo * %1 * COMMAND LINE PARAMETER INVALID
echo PLEASE USE THE PARAMETERS IN THE { } NEXT TO THE FILENAME YOU WISH TO
echo PATCH .......
echo
GOTO PARAM
::
:NLMONLY
echo
echo %1 IS ONLY FOR THE NLM PRODUCTS - NOT %2 VERSION %BTR_VER% PRODUCTS
GOTO END
::
:VAPONLY
echo
echo %1 IS ONLY FOR THE VAP PRODUCTS - NOT %2 VERSION %BTR_VER% PRODUCTS
GOTO END
::
:NOTPKG
echo
echo Parameters incorrect for %1 using %2
echo
echo Either incorrect parameters were specified or
echo
echo %1 for %2 is NOT part of the %BTR_NWV% PRODUCT PACKAGE
echo
GOTO END
::
:PARAM
IF %1! == ! CLS
IF %2? == ! CLS
echo THE FORMAT IS:
echo
echo PATCH510 [filename] [type]
echo
echo WHERE [filename] IS: BTRIEVE { NLM, DOS }
echo BSERVER { VAP }
echo BROUTER { VAP }
echo BREQUEST { VAP, NLM }
echo BTRCALLS { LOC, REQ }
echo BUTIL
echo WBTRCALL
echo BTRTOOLS
echo
echo AND [type] IS: NLM
echo VAP
echo DOS
echo LOC { Local }
echo REQ { Requester }
GOTO END
::
:FIXDONE
echo
echo BTRIEVE PRODUCT FOR %2 VERSION %BTR_VER% ** PATCH COMPLETE **
echo
::
:END
SET BTR_FILE=
SET BTR_ORG=
SET BTR_PAT=
SET BTR_VER=
SET BTR_NWV=